package test1.library.command;

import java.io.File;

public class Listbooks implements ICommand {
    private static final String LIST = "Список";
	
	private static final String INFO = "Выводит список команд";
	
	public String name() {
		return LIST;
	}

	
	public String info() {
		return INFO;
	}
    public void listbooks () 
    {
    String list[] = new File("books").list();
            for(int i = 0; i < list.length; i++)
                System.out.println(list[i]);
    }

    @Override
    public void execute(String... args) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
